package com.dp.appi.dao;

import java.util.List;
import java.util.Map;

/**
 * Created by bchen on 2016/6/20.
 */
public interface PayDao  extends BaseDao  {
    /**
     *平台产品购买清单
     * @return
     */
    List<Map<String,Object>> buyMenuList(Integer appliesType);

    /**
     * 获取产品购买菜单
     * @param buyMentId
     * @param appliesType
     * @return
     */
    Map<String, Object> getBuyMent(Long buyMentId, Integer appliesType);

    /**
     * 添加购买日志
     * @param user_id
     * @param total_fee
     * @param type
     * @param people_num
     */
    void addBuyLog(String user_id, String total_fee, String type, String people_num, String departid, Map<String, Object> buyMentMap);

    /**
     * 修改用户表
     * @param vaild_time
     * @param time_unit
     * @param start_time
     */
    void upUser(String vaild_time, String time_unit, String start_time, String user_id);

    /**
     * 修改个人角色表
     * @param user_id
     */
    void upRoleUser(String user_id);

    /**
     * 修改组织机构表
     * @param departid
     * @param people_num
     * @param vaild_time
     * @param time_unit
     * @param finish_time
     */
    void upDepart(String departid, String people_num, String vaild_time, String time_unit, String finish_time);
}
